import Cookies from 'js-cookie'
import { getLanguage } from '@/lang/index'

const state = {
  busiParamMessage: '',
  remoteParamMessage: '',
}

const mutations = {

  setBusiParamMessage: (state, busiParamMessage) => {
    state.busiParamMessage = busiParamMessage
    // Cookies.set('size', size)
  },
  setRemoteParamMessage: (state, remoteParamMessage) => {
    state.remoteParamMessage = remoteParamMessage
    // Cookies.set('size', size)
  }
}

const actions = {
  setBusiParamMessage({ commit }, sn) {
    commit('setBusiParamMessage', sn)
  },
  setRemoteParamMessage({ commit }, sn) {
    commit('setRemoteParamMessage', sn)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
